package cn.lg.feignclient;

import cn.lg.domain.Course;
import cn.lg.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ProjectName springcloud_netflix_parent
 * @ClassName UserFeignClient
 * @Description TODO
 * @Author Administrator
 * @Date 2022/5/30 14:41
 * @Version 1.0
 **/
@FeignClient(value = "course-server",fallbackFactory = SourseFeignFallBackFactory.class)
public interface SourseFeignClient {
    @PutMapping("/course/addOrUpdate")
    AjaxResult addOrUpdateMove(@RequestBody Course course) ;
    @GetMapping("/course/getOne/{id}")
    Course getOneMove(@PathVariable("id") Long id);
}
